import { createApp } from 'vue'
// import { createPinia } from 'pinia'
 

import App from './app.vue'
import router from './router'
import { setupStore } from './stores';

import './assets/styles/index.scss' 
// 渲染前处理(引入所有API)
import preLoader from './utils/loader/loader'
import mockAPI from './apis/index' 
import './permission'  
// import 'amfe-flexible'
  
// 获取皮肤主题

// ========================================================
// Mock & Config Setup
// 渲染前设置配置项和mock API，config为子模块配置项
// ========================================================
preLoader.load({
  config: {},
  apis: mockAPI
})


const app = createApp(App)
setupStore(app);
// app.use(createPinia())
app.use(router)

app.mount('#root')
